package com.lifesting.tool.j2as3.visitor;

public final class IdGenerator {
	private volatile static int idNum = 0;
	private volatile static int varNum = 0;
	public final static String getAnonymouseId(){
		idNum++;
		return "AnonClass"+idNum;
	}
	public static void renew(){
		idNum = 0;
		varNum = 0;
	}
	public final static String getAnonVarName(){
		varNum++;
		return "j2as3_instance_"+varNum;
	}
}
